package cn.tedu.oa_system.repository;

import cn.tedu.oa_system.pojo.vo.UserSimpleVO;

import java.util.List;

/**
 * @Author MW
 * @Description 用户缓存仓库接口
 * @CreateDate 2023/1/7 0:16
 * @Entity:
 */
public interface IUserRedisRepository {

    String KEY_USER_ITEM_PREFIX="user:item:";

    String KEY_USER_LIST=KEY_USER_ITEM_PREFIX+"list";

    Boolean exists(Long id);

    void saveEmptyValue(Long id);

    void save(UserSimpleVO userSimpleVO);

    void save(List<UserSimpleVO> users);

    Boolean deleteList();

    void deleteAllItem();

    UserSimpleVO getUserSimpleById(Long id);

}
